package exam.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/3/20 17:07
 * @since JDK 1.8
 *
 * person的Mybatis版本
 */
@Data
@TableName("person")
public class BPerson {

    @TableId(type=IdType.ASSIGN_UUID)
    private String id;

    @TableField("name")
    private String name;

    @TableField("age")
    private Integer age;

    @TableField("phone")
    private String phone;

    @TableField("note")
    private String note;

    @TableField("address")
    private String address;

    @TableField("createtime")
    private Date createtime;

}
